﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="advisory.ascx.cs" Inherits="GoShopping.Web.UserControls.advisory" %>
<style type="text/css">
    
</style>
<table  cellpadding="0" cellspacing="0" border="0"  style="width:180px; background-color:#E3F0F6 ; font-size:9pt;">
    <tr>
        <%--<td rowspan="10" style="width:2px; background-color:#FFFFFF">
            &nbsp;</td> --%>      
        <td style="width:10px; font-size:9pt">
            </td>
        <td  style="height:48px; width:30px; vertical-align:middle;  font-size:9pt; ">
               &nbsp;QQ</td>
        <td style="width:38px; font-size:9pt">
           <img id="Img1" alt="" src="~/Images/Advisory/QQ_ad.gif" runat="server" onclick="window.location.href='http://wpa.qq.com/msgrd?V=1&Uin=555555Site=By%20Dvbbs&Menu=yes'"    />
            </td>
        <td style="height:48px; width:46px;font-size:9pt ">
        &nbsp;&nbsp;MSN
        </td>
        <td style="height:48px; width:56px; text-align:left; ">
        &nbsp;<img id="Img2" alt="" src="~/Images/Advisory/MSN_ad.gif" runat="server" onclick="window.location.href='msnim:chat?contact=kailei-zinu@hotmail.com'"    />
        </td>
        <%--<td rowspan="10" style="width:5px;background-color:#FFFFFF">
            </td>--%>
    </tr>
    <tr>
        <td colspan="5" 
            style=" height:24px;background-image:url('<%=this.ResolveUrl("~/Images/Advisory/hor-1.gif")%>'); background-repeat:repeat-x; text-align:left;">
         &nbsp;<span style=" font-size:9pt; color:#0066CC; font-weight:500;">Email通讯</span> </td>
    </tr>
    <tr>
        <td colspan="5" style=" height:24px; text-align:left;">&nbsp;&nbsp;&nbsp;<span style=" font-size:8pt; font-weight:500;">咨询主题:</span>&nbsp;
            <asp:DropDownList ID="ad_topic" runat="server" style=" background-color:White; width:100px; height:20px; position:relative; top:1px;">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td colspan="5" style=" height:24px; text-align:left;">
            &nbsp;&nbsp;&nbsp;<span style=" font-size:8pt; font-weight:500;">咨询内容:</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td colspan="5" style=" height:66px; text-align:center;">
            <asp:TextBox ID="txtContent" runat="server" style=" width:165px; height:66px;"></asp:TextBox>
        </td>
    </tr>
     <tr>
        <td colspan="5" style=" text-align:right;">
           <asp:LinkButton ID="but_annoy" runat="server" onclick="but_annoy_Click"><span style=" font-size:8pt; font-weight:500;">提交</span></asp:LinkButton>
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="but_real" runat="server" 
                onclick="but_real_Click"><span style=" font-size:8pt; font-weight:500;">登陆并提交</span></asp:LinkButton>&nbsp;&nbsp;
            </td>
    </tr>
    <tr>
        <td colspan="5" 
            style=" text-align:left; height:28px;background-image:url('<%=this.ResolveUrl("~/Images/Advisory/hor-1.gif")%>'); background-repeat:repeat-x; vertical-align:bottom;">
            &nbsp;<span style=" font-size:8pt; color:#0066CC; font-weight:500;">咨询列表</span> </td>
    </tr>
   
    <tr>
        <td colspan="5" style=" height:250px;">
            <asp:ListView ID="ListView1" runat="server" 
                ItemContainerID="layoutTableTemplate" 
                onitemdatabound="ListView1_ItemDataBound" onitemcommand="ListView1_ItemCommand">
            <LayoutTemplate>
             <div style="height:250px;width:180px">
            <table cellpadding="5" width="180px">
            <tbody id="itemPlaceholder" runat="server"></tbody>
            <tr>
            <td style="width:120px ; font-size:9pt;"></td>
           <%-- <td style=" vertical-align:bottom; ">            
            <a href="~/AdvisoryList.aspx"   runat="server">查看更多</a>
            </td>--%>
            </tr>
            </table>
            </div>
            </LayoutTemplate>
            <ItemTemplate>
            <tr>
               <td valign="top" style="font-weight:bolder; text-align:left; font-size:8pt">
                   <asp:Label ID="Label1" runat="server" Text='<%# Eval("title") %>'></asp:Label></td>
            </tr>
            <tr>
               <td valign="top" style="text-indent:10px; font-size:8pt" align="left">
                   <asp:Label ID="Label2" runat="server" Text='<%# Eval("content")  %>'></asp:Label></td>
            </tr>
            <tr>
               <td valign="top" style="text-indent:10px; font-size:8pt" align="left">
                   <asp:Label ID="lblReply" runat="server" Text='<%#Eval("ReplyContent")%>'></asp:Label></td>
            </tr>
            </ItemTemplate>
            </asp:ListView>
        </td>
        
    </tr>
    <tr>
        <td colspan="5"  style=" text-align:right; padding-right:10px;  width:180px; ">            
            <a id="A1" href="~/AdvisoryList.aspx" runat="server">查看更多</a>
        </td>
     </tr>
    <tr>
        <td colspan="5" 
            style=" height:16px; background-image:url('<%=this.ResolveUrl("~/Images/Advisory/hor-1.gif")%>'); background-repeat:repeat-x; background-position:top; vertical-align:bottom; background-color:White;">
        <img id="bot_pic1" alt="" src="~/Images/Advisory/bot_pic.gif"  runat="server"/>
            </td>
    </tr>
</table>
